<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org"
	xmlns:winter="http://www.winter.org"
	xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
	layout:decorator="/layouts/layout">
	
	<div id="AddNotaFragment" th:fragment="NotasGestionFragment">
		<winter:output id="NotaDialogGestionOutput">
			<winter:output id="mainNotaDialogOutput">
				<div class="table-row">
					<winter:textarea
						id="textoId" 
						field="*{nota.texto}" 
						class="template-area-small"
						label="#{label.control.nota.texto}"
						labeldisplay="col-xs-4"
						inputdisplay="col-xs-8"
						containerdisplay="row padded template-area-small"
						type="char">
					</winter:textarea>	
				</div>
				<winter:row class="button-panel-right" padded="true">
					<winter:ajaxsubmit 
							id="GrabarSeguimientoId" 
							form="ControlesForm"
							oncomplete="@{'Winter.ui.CloseDialog(\'NotaModal\')'}"
							url="@{'/controles/grabarSeguimiento'}" 
							update="mainNotaOutput"
							value="Agregar Nota"
							object="controles"
							showstatus="true"
							class="btn btn-cyan"
							immediate="true">
					</winter:ajaxsubmit>
					<winter:ajaxSubmit 
						id="SalirNotaButtonId"
						form="ControlesForm"
						oncomplete="@{'Winter.ui.CloseDialog(\'NotaModal\')'}"
						url="@{'/controles/cancelar/NOTA'}"
						update="NotasModalOutput,ListNotas,NotaOutput"
						value="#{label.operaciones.cancelar}"
						class="btn btn-danger"
						object="controles"
						showstatus="true"
						confirmationrequired="false"
						confirmationtext="Esta seguro de que desea descartar los cambios realizados?"
						immediate="true">
					</winter:ajaxSubmit>
				</winter:row>
			</winter:output>
		</winter:output>
	</div>
</html>